﻿using System.Collections.ObjectModel;
using Caliburn.Micro;
using JY.Wpf.Core.Tools;

namespace JY.Wpf.Core.Models
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class User : PropertyChangedBase
    {
        #region 用户名——string UserName

        private string _userName;
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return this._userName; }
            set { this._userName = value; base.NotifyOfPropertyChange(); }
        }
        #endregion
        #region 密码——string Password
        private string _password;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return this._password; }
            set { this._password = value; base.NotifyOfPropertyChange(); }
        }
        #endregion
        #region 真实姓名——string RealName
        private string _realName;
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName
        {
            get { return this._realName; }
            set { this._realName = value; base.NotifyOfPropertyChange(); }
        }
        #endregion
        #region 系统菜单——ObservableCollection<SystemMenu> SystemMenus
        private ObservableCollection<SystemMenu> _systemMenus;
        /// <summary>
        /// 系统菜单
        /// </summary>
        public ObservableCollection<SystemMenu> SystemMenus
        {
            get { return this._systemMenus; }
            set { this._systemMenus = value; base.NotifyOfPropertyChange(); }
        } 
        #endregion
    }
}
